import request from "./http";

// 获取排行版歌单
export function getToplist() {
    return request({
        url: "/toplist",
        method: "get"
    })
}

// 获取歌单详情
export function getPlaylistDetail(params) {
    return request({
        url: "/playlist/detail",
        method: "get",
        params
    })
}
// 获取歌手
export function getToplistArtist(params) {
    return request({
        url: "/toplist/artist",
        method: "get",
        params
    })
}
//获取歌手
export function getArtistListType(params) {
    return request({
        url: "/artist/list?type=-1&area=7",
        method: "get",
        params
    })
}

//获取不同歌手 /artist/list?type=1&area=96&initial=b
export function getArtistList({
    type,
    area
}) {
    return request({
        url: "/artist/list",
        method: "get",
        params: {
            type: type,
            area: area,
        }
    })
}
//获取mv
export function getTopMv(params) {
    return request({
        url: "/top/mv",
        method: "get",
        params
    })
}
//获取全部mv
export function getMvAll(params) {
    return request({
        url: "/mv/first",
        method: "get",
        params
    })
}

//播放mv
export function getMvUrl(params) {
    return request({
        url: "/mv/url",
        method: "get",
        params
    })
}
//获取mv数据
export function getMvDetail(params) {
    return request({
        url: "/mv/detail",
        method: "get",
        params
    })
}

//获取mv评论
export function getCommentMV(params) {
    return request({
        url: "/comment/mv",
        method: "get",
        params
    })
}
export function getRelatedAllvideo(params) {
    return request({
        // url: "/related/allvideo",
        url:"/personalized/mv",
        method: "get",
        params
    })
}
//播放视频
export function getVideourl(params) {
    return request({
        url: "/video/url",
        method: "get",
        params
    })
}